<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 15.01.2015
 * Time: 12:48
 */

use Pinenut\Config;

class MenuItemsConfig extends Config {

	public static $config = [
		'htmlOptions' => [
			'id' => 'htmlId',
			'class' => 'htmlClass',
			'style' => 'htmlStyle',
		],
		'items' => [
			'item1' => [
				'title' => 'title item 1',
				'action' => [
					'name' => 'test',
					'params' => [
						'ap' => 'item1',
					],
				],
			],

			'item2' => [
				'title' => 'title item 2',
				'action' => [
					'name' => 'test',
					'params' => [
						'ap' => 'item2',
					],
				],
				'containerOptions' => [
					'id' => 'containerId',
					'class' => 'containerClass',
					'style' => 'containerStyle',
				],
				'linkOptions' => [
					'id' => 'linkId',
					'class' => 'linkClass',
					'style' => 'linkStyle',
				],
				'privileges' => [
					'#unauthorized',
					'#authorized',
				],
				'submenu' => [
					'htmlOptions' => [
						'id' => 'htmlId2',
						'class' => 'htmlClass2',
						'style' => 'htmlStyle2',
					],
					'items' => [
						'item2-1' => [
							'title' => 'title item 2.1',
							'action' => [
								'name' => 'test',
								'params' => [
									'ap' => 'item2.item2-1',
								],
							],
							'submenu' => [
								'items' => [
									'item2-1-1' => [
										'title' => 'title item 2.1.1',
										'action' => [
											'name' => 'test',
											'params' => [
												'ap' => 'item2.item2-1.item2-1-1',
											],
										],
									],
									'itemDynamic' => [
										'renderAction' => [
											'name' => 'menu.submenu.test'
										],
									],
									'item2-1-2' => [
										'title' => 'title item 2.1.2',
										'action' => [
											'name' => 'test',
											'params' => [
												'ap' => 'item2.item2-1.item2-1-2',
											],
										],
									],
								],
							],
						],
					],
				],
			],
			'item3' => [
				'title' => 'title item 3',
				'action' => [
					'name' => 'test',
					'params' => [
						'ap' => 'item3',
					],
				],
				'submenu' => [
					'isOpened' => true,
					'htmlOptions' => [
						'id' => 'htmlId2',
						'class' => 'htmlClass2',
						'style' => 'htmlStyle2',
					],
					'items' => [
						'item3-1' => [
							'title' => 'title item 3.1',
							'action' => [
								'name' => 'test',
								'params' => [
									'ap' => 'item3.item3-1',
								],
							],
							'submenu' => [
								'isOpened' => true,
								'items' => [
									'item3-1-1' => [
										'title' => 'title item 3.1.1',
										'action' => [
											'name' => 'test',
											'params' => [
												'ap' => 'item3.item3-1.item3-1-1',
											],
										],
									],
									'itemDynamic2' => [
										'renderAction' => [
											'name' => 'menu.submenu.test'
										],
									],
									'item3-1-2' => [
										'title' => 'title item 3.1.2',
										'action' => [
											'name' => 'test',
											'params' => [
												'ap' => 'item3.item3-1.item3-1-2',
											],
										],
									],
								],
							],
						],
					],
				],
			],
			'item4' => [
				'selected' => true,
				'title' => 'title item 4',
				'action' => [
					'name' => 'test',
					'params' => [
						'ap' => 'item4',
					],
				],
			],
			'item5' => [
				'title' => 'title item 5',
				'action' => [
					'name' => 'test',
					'params' => [
						'ap' => 'item5',
					],
				],
				'submenu' => [
					'items' => [
						'itemDynamic2' => [
							'renderAction' => [
								'name' => 'menu.submenu.test2'
							],
						],
					]
				]
			],
		]
	];
}